﻿using Sunny.UI.Win32;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Gl_mes.DAL.CustomDB
{
    /// <summary>
    /// 进序条数据，用于生成工单DataGirdView中的站点进度
    /// </summary>
    [Serializable]
    public class BreadcrumbModel
    {
        /// <summary>
        /// 进度条的背景颜色
        /// </summary>
        public Color BackColor { get; set; } = Color.White;

        /// <summary>
        /// 未选中的item颜色
        /// </summary>
        public Color UnSelectedColor { get; set; } = System.Drawing.Color.FromArgb(((int)(((byte)(155)))), ((int)(((byte)(200)))), ((int)(((byte)(255)))));

        /// <summary>
        /// 未选中的item颜色
        /// </summary>
        public Color UnSelectedForeColor { get; set; } = Color.White;

        /// <summary>
        /// item选择后的颜色
        /// </summary>
        public Color SelectedColor { get; set; } = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));

        /// <summary>
        /// 进序条每个item的名称
        /// </summary>
        public List<string> ItemString { get; set; } = new List<string>();

        //进度
        public int ItemIndex { get; set; } = -1;
        
        /// <summary>
        /// 每个item的长度
        /// </summary>
        public int ItemWidth { get; set; }

        /// <summary>
        /// item间隔
        /// </summary>
        public int Interval { get; set; } = 1;

        /// <summary>
        /// 位置
        /// </summary>
        public Point Location { get; set; } 


        /// <summary>
        /// 控件大小
        /// </summary>
        public Size Size { get; set; }  
    }
}
